<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>chunk demo</title>
    <!-- <script src="https://cdn.bootcdn.net/ajax/libs/lodash.js/4.17.21/lodash.min.js"></script> -->
    <script src="lodash.min.js"></script>
    <script src="../helpers/bing.js"></script>
  </head>
  <body>
    <script>

      const arr1 = ["06", "07", "08", "09", "10", "11", "12", 13, "14", "15"];
      const arr2 = [6, "7", 12, "13", "14", 15]; // 注意：假设第二个数组中的 `12'` 是笔误，应为 12

      // 自定义比较器：将元素转为数字后比较
      const comparator = (a, b) => _.toNumber(a) === _.toNumber(b);

      // 计算 arr1 - arr2（保留 arr1 中独有的元素）
      const result = _.differenceWith(arr1, arr2, comparator);

      console.log(result); // 输出: ["08", "09", "10", "11"]

    </script>
  </body>
</html>
